// JavaScript Document

var STATE_FARM = 0;
var STATE_NUM = 1;

var CANVAS_WIDTH = 800;
var CANVAS_HEIGHT = 600;

var WORLD_WIDTH = 1024;
var WORLD_HEIGHT = 800;

// layer define
var LAYER_BACKGROUND = 0;
var LAYER_FARM = 1000;
var LAYER_BOTTOM_TOOL_BAR = 10000;
var LAYER_TOP_TOOL_BAR = 11000;
var LAYER_DIALOG = 20000;


// image resource
var IMAGE_BACK_GROUND = "images/background.png";
var IMAGE_FARM_BLOCK_COMMON = "images/common_farm_block.png";
var IMAGE_FARM_BLOCK_DRY = "images/dry_farm_block.png";
var IMAGE_FARM_BLOCK_HIGHLIGHT = "images/highlight_farm_block.png";
var ICON_SHOP = "images/shop_icon.png";
var ICON_WARE_HOUSE = "images/warehouse_icon.png";

// cursor
var CURSOR_ANI_KILL_WORM = "images/chong.png";
var CURSOR_ANI_HARVEST = "images/harvest.png";
var CURSOR_PLACE_WORM = "images/place_worm.png";
var CURSOR_FANDI = "images/fandi.png";
var CURSOR_SEEDS = "images/sample_seed.png";

var CURSOR_COMMON = "images/cursor_common.png";
var CURSOR_DRAG = "images/cursor_drag.png";
var CURSOR_NONE = "images/transparent_cursor.png";

// plants
var PLANTS_SEED = "images/sample_seed.png";
var PLATNS_STAGE_0 = "images/sample_stage_0.png";
var PLATNS_STAGE_1 = "images/sample_stage_1.png";
var PLATNS_STAGE_2 = "images/sample_stage_2.png";
var PLATNS_STAGE_3 = "images/sample_stage_3.png";
var PLATNS_STAGE_4 = "images/sample_stage_4.png";
var PLATNS_STAGE_5 = "images/sample_stage_5.png";
var PLATNS_STAGE_6 = "images/sample_stage_6.png";

// bottom icon
var ICON_DRAG = "images/icon_drag.png";
var ICON_FANDI = "images/icon_fandi.png";
var ICON_HARVEST = "images/icon_harvest.png";
var ICON_HARVEST_ALL = "images/icon_harvest_all.png";
var ICON_ITEMS = "images/icon_items.png";
var ICON_KILL_WEEDS = "images/icon_kill_weed.png";
var ICON_KILL_WORMS = "images/icon_kill_worm.png";
var ICON_WATER = "images/icon_water.png";
var ICON_PLACE_WEEDS = "images/icon_place_weed.png";
var ICON_PLACE_WORMS = "images/icon_place_worm.png";


var IMG_BUFFER_WIDTH = 1024;
var IMG_BUFFER_HEIGHT = 1024;